package com.kmg.scart.model;

import java.sql.Date;
import java.util.HashSet;
import java.util.Set;

public class WishList extends ApplicationEntity{

	private Set<WishListItem> items;

	private User owner;
	
	private Date lastModified;

	public Set<WishListItem> getItems() {
		return items;
	}

	public void setItems(Set<WishListItem> items) {
		this.items = items;
	}

	public User getOwner() {
		return owner;
	}

	public void setOwner(User owner) {
		this.owner = owner;
	}

	public Date getLastModified() {
		return lastModified;
	}

	public void setLastModified(Date lastModified) {
		this.lastModified = lastModified;
	}
	
	public void addToWishList(WishListItem prd){
		if(items ==null){
			items = new HashSet<WishListItem>();
		}
		items.add(prd);
	}
		
}
